package com.wuyou.designPatterns.template;

import ch.qos.logback.core.sift.AbstractDiscriminator;

public class CharDisplay extends AbstractDisplay {

    private char c;

    public CharDisplay(char c) {
        this.c = c;
    }

    public char getC() {
        return c;
    }

    public void setC(char c) {
        this.c = c;
    }

    @Override
    void open() {
        System.out.println("<<");
    }

    @Override
    void print() {
        System.out.println(c);
    }

    @Override
    void close() {
        System.out.println(">>");
    }
}
